module sys_sta_led(
    input  sys_rst_n,
    input  sys_clk,
    output sys_sta
);

parameter count_value       = 13_500_000;

reg [23:0]  count_value_reg ;
reg         count_value_flag;

always @(posedge sys_clk) begin
    if (!sys_rst_n) 
        begin
            count_value_reg  <= 23'b0;
            count_value_flag <= 1'b1 ;
        end 
    else
        begin 
            if (count_value_reg <= count_value) begin
                count_value_reg  <= count_value_reg + 1'b1;
                count_value_flag <= 1'b0 ;
            end else begin
                count_value_reg  <= 23'b0;
                count_value_flag <= 1'b1 ;
            end
        end
end

reg sys_sta_reg = 1'b0;

always @(posedge sys_clk) begin
    if (count_value_flag)
        sys_sta_reg <= ~sys_sta_reg;
    else
        sys_sta_reg <= sys_sta_reg;
end

assign sys_sta = sys_sta_reg;

endmodule